/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商品库存Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class Stock extends DataEntity<Stock> {
	
	private static final long serialVersionUID = 1L;
	private Integer productId;		// 产品ID,见dfc_product的product_id
	private Integer colorId;		// 颜色ID,见dfc_sku_color的color_id
	private Integer sizeId;		// 尺寸ID,见dfc_sku_color的color_id
	private BigDecimal warnNum;		// 商品报警数量
	private BigDecimal num;		// 数量
	private BigDecimal price;		// 销售价格
	private BigDecimal minSalePrice;		// 最低销售价
	private BigDecimal amnt;		// 库存金额
	
	public Stock() {
		super();
	}

	//public ApiStock(String id){
	//	this.id = id;
	//}

	@NotNull(message="产品ID,见dfc_product的product_id不能为空")
	@ExcelField(title="产品ID,见dfc_product的product_id", align=2, sort=0)
	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	
	@NotNull(message="颜色ID,见dfc_sku_color的color_id不能为空")
	@ExcelField(title="颜色ID,见dfc_sku_color的color_id", align=2, sort=1)
	public Integer getColorId() {
		return colorId;
	}

	public void setColorId(Integer colorId) {
		this.colorId = colorId;
	}
	
	@NotNull(message="尺寸ID,见dfc_sku_color的color_id不能为空")
	@ExcelField(title="尺寸ID,见dfc_sku_color的color_id", align=2, sort=2)
	public Integer getSizeId() {
		return sizeId;
	}

	public void setSizeId(Integer sizeId) {
		this.sizeId = sizeId;
	}
	
	@ExcelField(title="商品报警数量", align=2, sort=3)
	public BigDecimal getWarnNum() {
		return warnNum;
	}

	public void setWarnNum(BigDecimal warnNum) {
		this.warnNum = warnNum;
	}
	
	@ExcelField(title="数量", align=2, sort=4)
	public BigDecimal getNum() {
		return num;
	}

	public void setNum(BigDecimal num) {
		this.num = num;
	}
	
	@ExcelField(title="销售价格", align=2, sort=5)
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	@ExcelField(title="最低销售价", align=2, sort=6)
	public BigDecimal getMinSalePrice() {
		return minSalePrice;
	}

	public void setMinSalePrice(BigDecimal minSalePrice) {
		this.minSalePrice = minSalePrice;
	}
	
	@ExcelField(title="库存金额", align=2, sort=7)
	public BigDecimal getAmnt() {
		return amnt;
	}

	public void setAmnt(BigDecimal amnt) {
		this.amnt = amnt;
	}
	
}